package com.situ.onlinebookstore.front.service;

import com.github.pagehelper.PageInfo;
import com.situ.onlinebookstore.common.entity.Order;
import com.situ.onlinebookstore.common.entity.OrderDetail;

public interface OrderService {
    //创建订单
    int create(Order order) throws Exception;
    //编辑订单
    int edit(Order order) throws Exception;
    //删除订单
    int remove(Order order) throws Exception;
    //根据ID查询订单
    Order getById(String id, Integer userId) throws Exception;
    //多条件组合查询
    PageInfo searchForPage(Integer page, Integer limit, Order order);

    int pay(String orderId, String payPassword, Integer id) throws Exception;
}
